<div class="wrap" style="height:600px;">
  <div id="icon-index" class="icon32"></div>
  <h2><?php e($pageTitle) ?></h2>
  <div id="grid-wrap">
    <table id="memberlist" style="display:none"></table>
  </div>

  <form id="form-account" action="<?php e($this->base); ?>/members/update" method="post" class="infotxt" onsubmit="return save()" style="width:800px;">
    <div id="message"></div>
    <div id="progress" class="fRight" style="visibility:hidden;"></div>
    <div class="clear"></div>
    <div class="fLeft" style="width:300px;">
      <table border="0" cellpadding="2" cellspacing="3" width="100%">
        <tbody>
          <tr>
            <td width="133" align="right" class="infotxt">&nbsp;<?php __('Member Id'); ?> :</td>
            <td class="infotxt"><?php e($member['international_id']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Member Code'); ?> :</td>
            <td class="infotxt"><?php e($member['member_code']); ?></td>
          </tr>
          <tr>
            <td colspan="2"><div style="height:1px; border-top:1px solid #ccc;"></div></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Date of Birth'); ?> :</td>
            <td>
              <input type="hidden" id="dob" name="dob" value="<?php e($member['dob']); ?>"  />
              <input type="text" id="dob-date" value="<?php e($member['dob-date']); ?>" readonly="readonly" class="date req" />
            </td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Company Name'); ?> :</td>
            <td class="infotxt"><?php e($member['company_name']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Business Reg No'); ?> :</td>
            <td class="infotxt"><?php e($member['company_reg_no']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Transfer to Bank'); ?> :</td>
            <td class="infotxt"><?php empty($member['transfer_bank']) ? __('No') : __('Yes'); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Bank'); ?> :</td>
            <td class="infotxt"><?php e($member['bank']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Branch'); ?> :</td>
            <td class="infotxt"><?php e($member['branch']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Bank Account No'); ?> :</td>
            <td class="infotxt"><?php e($member['bank_account']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Receiver Name'); ?> :</td>
            <td><input type="text" id="receiver_name" name="receiver_name" value="<?php e($member['receiver_name']); ?>" class="input req" /></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Receiver Telephone'); ?> :</td>
            <td><input type="text" id="receiver_telephone" name="receiver_telephone" value="<?php e($member['receiver_telephone']); ?>" class="input req" /></td>
          </tr>
          <tr>
            <td align="right" valign="top" class="infotxt" style="padding-top:6px;">&nbsp;<?php __('Join On'); ?> :</td>
            <td class="infotxt"><?php e($member['join_date']); ?></td>
          </tr>
          <tr>
            <td align="right" valign="top" class="infotxt" style="padding-top:6px;"><?php __('Renew Date'); ?> :</td>
            <td class="infotxt"><?php e($member['renew_date']); ?></td>
          </tr>
          <tr>
            <td colspan="2" class="infotxt"><span class="style16">*</span>&nbsp;<b><?php __('Required Field'); ?></b></td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="fRight" style="width:302px; margin:0 30px;">
      <table border="0" cellpadding="2" cellspacing="3" width="100%">
        <tbody>
          <tr>
            <td width="138" align="right" class="infotxt">&nbsp;<?php __('Full Name'); ?> :</td>
            <td class="infotxt"><?php e($member['fullname']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('ID / Passport No'); ?> :</td>
            <td><input type="text" id="identity" name="identity" value="<?php e($member['identity']); ?>" class="input req" /></td>
          </tr>
          <tr>
            <td colspan="2"><div style="height:1px; border-top:1px solid #ccc;"></div></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Email'); ?> :</td>
            <td><input type="text" id="email" name="email" value="<?php e($member['email']); ?>" class="input req" /></td>
          </tr>
          <tr>
            <td align="right" valign="top" class="infotxt" style="padding-top:6px;">&nbsp;<?php __('Residential Address'); ?> :</td>
            <td class="infotxt"><?php e($member['residential_address']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Residential Postcode'); ?> :</td>
            <td class="infotxt"><?php e($member['residential_postcode']); ?></td>
          </tr>
          <tr>
            <td align="right" valign="top" class="infotxt" style="padding-top:6px;"><span class="style16">*</span>&nbsp;<?php __('Postal Address'); ?> :</td>
            <td><textarea id="postal_address" name="postal_address" class="input req"><?php e($member['postal_address']); ?></textarea></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Postal Postcode'); ?> :</td>
            <td><input type="text" id="postal_postcode" name="postal_postcode" value="<?php e($member['postal_postcode']); ?>" class="input req" /></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Country'); ?> :</td>
            <td class="infotxt"><?php e($member['country']); ?></td>
          </tr>
          <tr>
            <td align="right" class="infotxt">&nbsp;<?php __('Telephone'); ?> :</td>
            <td><input type="text" id="telephone" name="telephone" value="<?php e($member['telephone']); ?>" class="input" /></td>
          </tr>
          <tr>
            <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Mobile No'); ?> :</td>
            <td><input type="text" id="mobile" name="mobile" value="<?php e($member['mobile']); ?>" class="input req" /></td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="clear"></div>
    <div style="color:red; margin-bottom:15px;">* <?php __('Company has the right to cancel the distributorship if the information given are incorrect or incompleted.'); ?></div>
    <div class="center popupActions">
      <input type="hidden" id="id" name="id" value="<?php e($member['id']); ?>" />
      <input type="submit" value="Save" />
    </div>
  </form>
</div>
<div class="clear"></div>
<br /><br />

<script>
var _webroot = '<?php e($this->base); ?>';
<?php $this->addScript('Ext.onReady(function() { init(); });'); ?>
</script>